import React, {Component} from 'react'
import {Link} from 'react-router'
import { isMobile } from 'util'
import ScrollTop from './mod/scrollTop'
import Logo from './mod/logo'
import Nav from './mod/nav'
import Footer from './mod/footer'

export default class Frame extends Component {
    render() {
        const {children} = this.props
        return (
            <div>
                <Logo />
                <Nav />
                {children}
                <Footer />
                {!isMobile() && <ScrollTop />}
            </div>
        )
    }
}